/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eyrolles;

import exception.DataAccessException;
import exception.ServiceException;
import exception.UserLoginException;
import exception.UserNotFoundException;
import java.sql.Statement;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Properties;
import javax.naming.NamingException;
import javax.sql.DataSource;

/**
 *
 * @author Dell
 */
public interface EyrollesModele {

    public void ajouterEmploye(Employe emp, String password) throws ServiceException, DataAccessException;

    public void supprimerEmploye(String username) throws ServiceException, DataAccessException;

    public void modifierEmploye(Employe emp, String password) throws ServiceException, DataAccessException;

    public ArrayList<Employe> recupererEmployes() throws ServiceException, DataAccessException;

    public Employe recupererEmploye(String username) throws ServiceException, DataAccessException, UserNotFoundException;

    public String recupererPassword(String username) throws ServiceException, DataAccessException;

    public String connecterEmploye(String username, String password) throws ServiceException, DataAccessException, UserLoginException;

    public void setProperties(Properties prop);
    
    public DataSource getDataSource(String dataSourceName) throws NamingException;
}
